<br /><br />
<a href="/navigationManager/getsearchpage">Go Back to Search</a>
<?php  
$subjects= $this->subjects; ?>
<?php if($subjects==null):?>
<p> Nothing Found!</p>

<?php else :?>
<table  border="1">
<tr><td colspan=4>Total of Subjects:<span class="total"> <?php echo $this->total; ?></span></td></tr>
<tr><th>Id</th><th>Name</th><th>Num_items</th></tr>
<?php 
	foreach ($subjects as $subject):
?>
	<tr><td><?php echo $subject["id"]?></td><td><?php echo $subject["name"]?></td><td><?php echo $subject["num_items"]?></td>
	<?php if($subject["num_items"]>0):?>
	<td><form action="/ItemManager/getitems" method="post">
			<input type="hidden"  name="path" value="<?php echo $subject["items_uri"]?>" />
			<input type="submit" value="View this Subject" />
	
	</form></td>
	<?php endif;?></tr>

<?php 
endforeach;?>
</table>
<?php endif;?>